Integrand size = 27, antiderivative size = 169 \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=-\frac {\sqrt {\frac {2}{3}} \text {arctanh}\left (\frac {\sqrt {\frac {3}{2}} \cos (e+f x)}{\sqrt {3+3 \sin (e+f x)}}\right )}{(c-d)^2 f}+\frac {\sqrt {d} (3 c+d) \text {arctanh}\left (\frac {\sqrt {3} \sqrt {d} \cos (e+f x)}{\sqrt {c+d} \sqrt {3+3 \sin (e+f x)}}\right )}{\sqrt {3} (c-d)^2 (c+d)^{3/2} f}+\frac {d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))} \]
[Out]
Time = 0.32 (sec) , antiderivative size = 175, normalized size of antiderivative = 1.04, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2858, 3064, 2728, 212, 2852, 214} \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=-\frac {\sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a}}\right )}{\sqrt {a} f (c-d)^2}+\frac {\sqrt {d} (3 c+d) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {c+d} \sqrt {a \sin (e+f x)+a}}\right )}{\sqrt {a} f (c-d)^2 (c+d)^{3/2}}+\frac {d \cos (e+f x)}{f \left (c^2-d^2\right ) \sqrt {a \sin (e+f x)+a} (c+d \sin (e+f x))} \]
[In]
[Out]
Rule 212
Rule 214
Rule 2728
Rule 2852
Rule 2858
Rule 3064
Rubi steps \begin{align*} \text {integral}& = \frac {d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))}+\frac {\int \frac {a (2 c+d)-a d \sin (e+f x)}{\sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))} \, dx}{2 a \left (c^2-d^2\right )} \\ & = \frac {d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))}+\frac {\int \frac {1}{\sqrt {a+a \sin (e+f x)}} \, dx}{(c-d)^2}-\frac {(d (3 c+d)) \int \frac {\sqrt {a+a \sin (e+f x)}}{c+d \sin (e+f x)} \, dx}{2 a (c-d)^2 (c+d)} \\ & = \frac {d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))}-\frac {2 \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{(c-d)^2 f}+\frac {(d (3 c+d)) \text {Subst}\left (\int \frac {1}{a c+a d-d x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{(c-d)^2 (c+d) f} \\ & = -\frac {\sqrt {2} \text {arctanh}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)}}\right )}{\sqrt {a} (c-d)^2 f}+\frac {\sqrt {d} (3 c+d) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {c+d} \sqrt {a+a \sin (e+f x)}}\right )}{\sqrt {a} (c-d)^2 (c+d)^{3/2} f}+\frac {d \cos (e+f x)}{\left (c^2-d^2\right ) f \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))} \\ \end{align*}
Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.
Time = 3.59 (sec) , antiderivative size = 649, normalized size of antiderivative = 3.84 \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left ((8+8 i) (-1)^{3/4} \text {arctanh}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) (-1)^{3/4} \left (-1+\tan \left (\frac {1}{4} (e+f x)\right )\right )\right )+\frac {\sqrt {d} (3 c+d) \text {RootSum}\left [c+4 d \text {$\#$1}+2 c \text {$\#$1}^2-4 d \text {$\#$1}^3+c \text {$\#$1}^4\&,\frac {-d \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )+\sqrt {d} \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-c \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}+2 \sqrt {d} \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}+3 d \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2-\sqrt {d} \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2-c \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^3}{-d-c \text {$\#$1}+3 d \text {$\#$1}^2-c \text {$\#$1}^3}\&\right ]}{(c+d)^{3/2}}-\frac {\sqrt {d} (3 c+d) \text {RootSum}\left [c+4 d \text {$\#$1}+2 c \text {$\#$1}^2-4 d \text {$\#$1}^3+c \text {$\#$1}^4\&,\frac {-d \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-\sqrt {d} \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-c \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}-2 \sqrt {d} \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}+3 d \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2+\sqrt {d} \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2-c \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^3}{-d-c \text {$\#$1}+3 d \text {$\#$1}^2-c \text {$\#$1}^3}\&\right ]}{(c+d)^{3/2}}-\frac {4 d (-c+d) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )}{(c+d) (c+d \sin (e+f x))}\right )}{4 \sqrt {3} (c-d)^2 f \sqrt {1+\sin (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(448\) vs. \(2(150)=300\).
Time = 0.98 (sec) , antiderivative size = 449, normalized size of antiderivative = 2.66
method | result | size |
default | \(\frac {\left (\sin \left (f x +e \right )+1\right ) \sqrt {-a \left (\sin \left (f x +e \right )-1\right )}\, \left (\sin \left (f x +e \right ) d \left (3 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a^{\frac {7}{2}} c d +\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a^{\frac {7}{2}} d^{2}-\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) \sqrt {2}\, \sqrt {a \left (c +d \right ) d}\, a^{3} c -\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) \sqrt {2}\, \sqrt {a \left (c +d \right ) d}\, a^{3} d \right )+3 a^{\frac {7}{2}} \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) c^{2} d +a^{\frac {7}{2}} \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) c \,d^{2}+a^{\frac {5}{2}} \sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {a \left (c +d \right ) d}\, c d -a^{\frac {5}{2}} \sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {a \left (c +d \right ) d}\, d^{2}-\sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) \sqrt {a \left (c +d \right ) d}\, a^{3} c^{2}-\sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) \sqrt {a \left (c +d \right ) d}\, a^{3} c d \right )}{a^{\frac {7}{2}} \left (c -d \right )^{2} \left (c +d \right ) \left (c +d \sin \left (f x +e \right )\right ) \sqrt {a \left (c +d \right ) d}\, \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(449\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 604 vs. \(2 (150) = 300\).
Time = 0.50 (sec) , antiderivative size = 1494, normalized size of antiderivative = 8.84 \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=\text {Too large to display} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=\int { \frac {1}{\sqrt {a \sin \left (f x + e\right ) + a} {\left (d \sin \left (f x + e\right ) + c\right )}^{2}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 363 vs. \(2 (150) = 300\).
Time = 0.52 (sec) , antiderivative size = 363, normalized size of antiderivative = 2.15 \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=\frac {\sqrt {2} {\left (\frac {\sqrt {2} {\left (3 \, c d + d^{2}\right )} \arctan \left (\frac {\sqrt {2} d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{\sqrt {-c d - d^{2}}}\right )}{{\left (c^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - c^{2} d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - c d^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + d^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \sqrt {-c d - d^{2}}} + \frac {\log \left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}{c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 2 \, c d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + d^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\log \left (-\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}{c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 2 \, c d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + d^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {2 \, d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{{\left (c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - d^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} {\left (2 \, d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c - d\right )}}\right )}}{2 \, \sqrt {a} f} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\sqrt {3+3 \sin (e+f x)} (c+d \sin (e+f x))^2} \, dx=\int \frac {1}{\sqrt {a+a\,\sin \left (e+f\,x\right )}\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^2} \,d x \]
[In]
[Out]